﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using DevExpress.LookAndFeel;
using DevExpress.UserSkins;
using DevExpress.Skins;

namespace TanHungLong
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            Application.CurrentCulture = System.Globalization.CultureInfo.CreateSpecificCulture("vi-VN");
            System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("vi-VN");
            System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("vi-VN");

            Application.EnableVisualStyles();
            OfficeSkins.Register();
            BonusSkins.Register();

            SkinManager.EnableFormSkins();

            DateTime dtNow = DateTime.Now;
            int i = int.Parse(dtNow.ToString("yyyyMMdd"));
            DateTime dt2 = new DateTime(2013, 09, 20, 0, 0, 0, 0);
            int i2 = int.Parse(dt2.ToString("yyyyMMdd"));
            if (i >= i2)
            {
                DevExpress.XtraEditors.XtraMessageBox.Show("Bạn đã hết hạn sử dụng. Vui lòng liên hệ qua số điện thoại 0973.050.039 (Nam) để tiếp tục sử dụng", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                Application.Exit();
            }
            else
                Application.Run(new FrmMain());
        }
    }
}
